package com.teemo.dp.factorymethod.demo3.factory;

import com.teemo.dp.factorymethod.demo3.computer.Computer;
import com.teemo.dp.factorymethod.demo3.computer.LaptopComputer;

/**
 * @author Teemo
 */
public class LaptomComputerFactory implements ComputerFactory{
    @Override
    public Computer createComputer() {
        LaptopComputer laptopComputer = new LaptopComputer();
        laptopComputer.setCpu("i5");
        laptopComputer.setMemory("8GB");
        laptopComputer.setHardDisk("256GB");
        return laptopComputer;
    }
}
